package com.yw.common.core.json.impl;

import com.google.gson.Gson;
import com.yw.common.core.json.IJsonParser;

/**
 * json解析器 gson实现
 * @author aoshiguchen
 * @time 2015-09-09
 */

public class GsonParserImpl implements IJsonParser{

	@Override
	public String objectToJson(Object obj) {
		
		Gson gson = new Gson();
		
		return gson.toJson(obj);
	}

}
